﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMVC.Models.LogOnModel>" %>
<asp:Content ID="meta" ContentPlaceHolderID="HeadContent" runat="server">
    <meta name="keywords" content="<%=ViewResources.MetaStrings.MembershipPagesMetaKeywords %>"/>
	<meta name="description" content="<%=ViewResources.MetaStrings.MembershipPagesMetaDescription %>" />
</asp:Content>
<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
<%=ViewResources.MetaStrings.LoginPageTitle %>
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">

<h2><%=ViewResources.AccountStrings.SignInHeader%></h2>
<div id="main">
<div class="thick-border">
        <div class="white-box">
             
    <%= Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm()) { %>
    
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.UserName)%>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.UserName) %>
                    <%= Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Password) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.Password) %>
                    <%= Html.ValidationMessageFor(m => m.Password) %>
                </div>
                
                <div class="checkbox-field">
                    <%= Html.CheckBoxFor(m => m.RememberMe) %>
                    <%= Html.LabelFor(m => m.RememberMe) %>
                </div>

                
                
                <p>
                    <input type="submit" value="Log On" />
                </p>

    <% } %>
        </div>
    </div>

    </div>
    <div id="navpanel">
        <% Html.RenderPartial("ProductNavControl"); %>
        <% Html.RenderAction("NewsNavControl","Home"); %>
    </div>
 
    
</asp:Content>
